﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
using YAPL.Util;

namespace YAPL.Test.YAPL.Util {
	public class ILVerifierTest {
		private const string UTIL_ASSEMBLY_PATH = @"Yapl.Util.dll";
		private readonly ILVerifier _verifier;
		
		public ILVerifierTest() {
			_verifier = new ILVerifier(TestHelper.PEVERIFY_UTILITY_PATH);
		}
		
		[Fact]
		public void UtilAssemblyShouldBeVerifiedWithoutErrors() {
			string result = null;
			Assert.DoesNotThrow(() => result = _verifier.VerifyAssemply(UTIL_ASSEMBLY_PATH));
			Assert.NotNull(result);
			Assert.Equal(result, ILVerifier.GetOkVerificationMessage(UTIL_ASSEMBLY_PATH));
		}
	}
}